﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Diagnostics;

namespace TSVNAddinUtils
{
	public class ProcessExecutor
	{
		public virtual void Exec(string fileName, string arguments)
		{
			ProcessStartInfo processInfo = new ProcessStartInfo();
			processInfo.FileName = fileName;
			processInfo.Arguments = arguments;
			processInfo.CreateNoWindow = true;
			processInfo.WindowStyle = ProcessWindowStyle.Hidden;

			var process = Process.Start(processInfo);
			process.WaitForExit();
		}
	}
}
